/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import cn.webrx.entity.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;

/**
 *
 * <p>Project: sboot2021 - App
 * <p>Powered by webrx On 2021-07-30 08:17:36
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since   16
 */
 @SpringBootApplication
 public class App {
    public static void main(String[] args){
        var ctx = SpringApplication.run(App.class,args);
        System.out.println(ctx.getBeanDefinitionCount());
        System.out.println(ctx.getBeanDefinitionNames());
        System.out.println(ctx.containsBean("user"));
        User u = ctx.getBean("user", User.class);
        System.out.println(u);
    }
}
